oxenstored: enable domain connection indexing based on eventchn port
authorZheng Li <dev@zheng.li>
Thu, 25 Sep 2014 17:34:59 +0000 (18:34 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 8 Oct 2014 13:18:46 +0000 (14:18 +0100)
commitec609f3254dd88f1a208758dd42245ee3f9bc34e
tree5d90265fbc860ff4b3f30d17cbfdcce771c6c646
parenta3967c5e42f7c50ea4ece2350020ef7b5ece49ba
oxenstored: enable domain connection indexing based on eventchn port

Currently in xenstore connection database,  we use a hash table of
(domid -> connection) to store domain connections. This allows fast indexing
based on dom ids.

This patch adds another dimention of fast indexing that is based on eventchn
port number. This is useful when doing selective connection processing
based on the port numbers of incoming events.

Signed-off-by: Zheng Li <dev@zheng.li>
Reviewed-by: David Scott <dave.scott@citrix.com>
tools/ocaml/xenstored/connections.ml
tools/ocaml/xenstored/domain.ml